<section id="content">

    <div class="page page-fullwidth-layout">

        <div class="pageheader">

            <h2>{$data.module_name}</h2>

            <div class="page-bar">

                <ul class="page-breadcrumb">
                    <li>
                        <a href="{:url('/admin')}"><i class="fa fa-home"></i> 起始页</a>
                    </li>
                    <li>
                        <a href="{:url($data.module_url)}">{$data.module_name}</a>
                    </li>
                    <li>
                        编辑{$data.module_name}
                    </li>

                </ul>

            </div>

        </div>

        <div class="pagecontent">



            <div class="add-nav">
                <div class="nav-heading">
                    <h3 class="custom-font"><strong>编辑 </strong> 基本信息</h3>
                    <span class="controls pull-right">
                        <a href="{:url($data.module_url)}" class="btn btn-ef btn-ef-1 btn-ef-1-default btn-ef-1a btn-rounded-20 mr-5" data-toggle="tooltip" title="返回"><i class="fa fa-chevron-left" aria-hidden="true"></i></a>
                    </span>
                </div>

                <!-- row -->
                <div class="row">
                    <!-- col -->
                    <div class="col-md-12">


                        <!-- tile -->
                        <section class="tile">

                            <div class="tile-body">

                                <form role="form" enctype="multipart/form-data" action="{:url($data.module_url).'update/'}customers_id/{$item.customers_id}" method="post">

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <label>客户姓名</label>                    <input type="text" class="form-control " name="name" value="{$item['name']}">

                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <label>微信昵称</label>                    <input type="text" class="form-control " name="c_nickname" value="{$item['c_nickname']}">

                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <label>手机号</label>                    <input type="text" class="form-control " name="mobile" value="{$item['mobile']}">

                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="checkbox">
                                                <span>性别</span>                        <label>
                                                <input type="radio" name="sex" value="1"  {if condition="$item['sex'] eq 1"}checked="checked"{/if}>  男                        </label>
                                                <label>
                                                    <input type="radio" name="sex" value="2" {if condition="$item['sex'] eq 2"}checked="checked"{/if}> 女                        </label>
                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="checkbox">
                                                <span>会员等级</span>                        <label>
                                                <input type="radio" name="customer_levlel" value="1" {if condition="$item['customer_levlel'] eq 1"}checked="checked"{/if}> 铜牌                        </label>
                                                <label>
                                                    <input type="radio" name="customer_levlel" value="2" {if condition="$item['customer_levlel'] eq 2"}checked="checked"{/if}> 银牌                        </label>
                                                <label>
                                                    <input type="radio" name="customer_levlel" value="3" {if condition="$item['customer_levlel'] eq 3"}checked="checked"{/if}> 金牌                        </label>
                                                <label>
                                                    <input type="radio" name="customer_levlel" value="4" {if condition="$item['customer_levlel'] eq 4"}checked="checked"{/if}> 钻石                        </label>
                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="checkbox">
                                                <span>客户状态</span>                        <label>
                                                <input type="radio" name="customer_type" value="1" {if condition="$item['customer_type'] eq 1"}checked="checked"{/if}> 新增                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="2" {if condition="$item['customer_type'] eq 2"}checked="checked"{/if}> 潜在                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="3" {if condition="$item['customer_type'] eq 3"}checked="checked"{/if}> 意向                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="4" {if condition="$item['customer_type'] eq 4"}checked="checked"{/if}> 准客户                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="5" {if condition="$item['customer_type'] eq 5"}checked="checked"{/if}> 合作客户                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="6" {if condition="$item['customer_type'] eq 6"}checked="checked"{/if}> 已认证                        </label>
                                                <label>
                                                    <input type="radio" name="customer_type" value="7" {if condition="$item['customer_type'] eq 7"}checked="checked"{/if}> 已放弃                        </label>
                                            </div>
                                        </div>
                                        <div class="col-xs-12">
                                            <div class="form-group">
                                                <label>备注</label>
                                                <textarea class="form-control " name="remark">{$item['remark']}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                    <label>所属用户</label>：
                                    <select name="user_id">
                                        {volist name='admin_users' id='val'}
                                        <option value="{$val['id']}" {if condition="$val['id'] eq $art_id"}selected{/if}>{$val['nickname']}</option>
                                        {/volist}
                                    </select>
                                    <p></p><button class="btn btn-lg btn-primary" type="submit"><i class="glyphicon glyphicon-ok"></i>&nbsp;提交</button><p></p>
                                </form>

                            </div>

                        </section>
                        <!-- /tile -->
                    </div>
                </div>
            </div>



        </div>

    </div>

</section>
<!--/ CONTENT -->